
<?php
$date = $work_day->getFechaFin();
$f_date ="";
if($date!="")
{
  $year = substr($date,0,4);
$month = substr($date,5,2);
$day = substr($date,8,2);
$f_date = $day."/".$month."/".$year;
}

?>
<h1>Editando jornada "<?php echo $work_day->getName(); ?>"</h1>
<form action="<?php echo url_for('@work_days_edit_save') ?>" method="post" autocomplete="off"   enctype="multipart/form-data">
    <input type="hidden" name="hdId" value="<?php echo $work_day->getId() ?>" />
<table width="100%" cellpadding="5" cellspacing="5">
  <tr>
    <td>Nombre</td>
      <td><textarea name="name" style="width: 100%;"><?php echo $work_day->getName(); ?></textarea></td>
  </tr>
  <tr>
    <td>Contenido</td>
    <td><textarea name="content" style="width: 100%;"><?php echo $work_day->getContent() ?></textarea></td>
  </tr>
  <tr>
    <td colspan="2">
      <hr />
    </td>
  </tr>
  <tr>
    <td>¿Tiene resoluci&oacute;n?</td>
    <td><input type="checkbox" name="is_solved" <?php if($work_day->getIsSolved()=='1'){ echo 'checked'; } ?> /></td>
  </tr>
  <tr>
    <td>Resoluci&oacute;n</td>
    <td><textarea name="resolution" style="width: 100%;"><?php echo $work_day->getResolution() ?></textarea></td>
  </tr>

  <tr>
    <td>Nro. Orden</td>
    <td><input type="text" name="order" value="<?php echo $work_day->getOrder(); ?>" /></td>
  </tr>
  <tr>
    <td>Titulo Fecha Jornada</td>
    <td><input type="text" name="titufecha" value="<?php echo $work_day->getFechajornada(); ?>" /></td>
  </tr>
   <tr>
    <td> Ultimo fecha Jornada</td>
    <td><input type="text" name="fecha" value="<?php echo $f_date; ?>" /></td>
  </tr>

   <tr>
    <td>Resumen</td>
    <td><textarea name="resumen" style="width: 100%;"><?php echo $work_day->getResumen(); ?></textarea></td>
  </tr>
 

  <tr>
    <td colspan="2" align="center">
        <input type="submit" value="Guardar Cambios" />
    </td>
  </tr>
</table>
</form>